import E from 'wangeditor';
import React from 'react';
import ReactDom from 'react-dom';

export default class Wangeditor extends React.Component{
	constructor(){
		super();
	};
    componentDidMount() {
    	var editor = new E('#editor');
        return editor.create();
    };	
    render(){
    	return (
    		<div id="editor">
                <p>这里是编辑器</p>
            </div>
    	);
    }
}